package org.mycub.server.data.models;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.utils.IndexDirection;

@Entity("stationVCUB")
public class VCUBStation {

	@Id private String id; 
	@Indexed(IndexDirection.GEO2D) private Double[] location = new Double[2];
	private String name;
	private String state;
	private int nbPlaces;
	private int nbVCUBs;
	private String heure;
	
	
	public VCUBStation(){
		this.setId("" + -1);
	}
	
	public Double[] getLocation() {
		return location;
	}
	public void setLocation(Double[] location) {
		this.location = location;
	}
	
	public double getLongitude(){
		return this.getLocation()[0];
	}
	
	public void setLongitude(double longitude){
		this.getLocation()[0] = longitude;
	}
	
	public double getLatitude(){
		return this.getLocation()[1];
	}
	
	public void setLatitude(double latitude){
		this.getLocation()[1] = latitude;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public int getNbVCUBs() {
		return nbVCUBs;
	}

	public void setNbVCUBs(int nbVCUBs) {
		this.nbVCUBs = nbVCUBs;
	}

	public int getNbPlaces() {
		return nbPlaces;
	}

	public void setNbPlaces(int nbPlaces) {
		this.nbPlaces = nbPlaces;
	}

	public String getHeure() {
		return heure;
	}

	public void setHeure(String heure) {
		this.heure = heure;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}
